<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>支付成功,页面将在 <span id="second">5</span>秒后跳转, <a href="./07-location.html">点击立即跳转</a></h2>
<script>

    var time_seconds = 5
    var span = document.getElementById('second')
    setInterval(function (){
        time_seconds --
        if (time_seconds <=0){
            window.location.href = './07-location.html'
        }
        span.innerText = time_seconds
    },1000)


</script>
</body>
</html>